package com.example.springBootweb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
* @author L-HN
* @since 2021-04-22
*/
@ApiModel(value ="")
@Data
@Accessors(chain = true)
@JsonInclude(value = JsonInclude.Include.NON_DEFAULT)
public class SysUser extends Model<SysUser> {

private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String password;



@Override
protected Serializable pkVal() {
    return this.id;
}
}